﻿using Factory.MasterData.Materials.Dto;
using Factory.ProductionManagement.ProcedureSettings.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Factory.ProductionManagement.ProcedureSettings
{
    /// <summary>
    /// 工序设置服务接口
    /// </summary>
    public interface IProcedureSettingAppService: IApplicationService
    {
        /// <summary>
        /// 添加工序设置
        /// </summary>
        /// <param name="procedureSettingDto">工序设置的数据</param>
        /// <returns>返回结果</returns>
        Task<int> Insert(ProcedureSettingDto procedureSettingDto);
        /// <summary>
        /// 工序设置信息分页显示
        /// </summary>
        /// <param name="pageIndex">当前页</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="inquireCode">工序设置编码</param>
        /// <returns>返回结果</returns>
        Task<PageResult> PageList(int pageIndex, int pageSize, string? inquireCode);
        /// <summary>
        /// 删除工序设置信息
        /// </summary>
        /// <param name="id">工序设置主键</param>
        /// <returns>返回结果</returns>
        Task<int> Deleted(string id);
        /// <summary>
        /// 编辑重复性验证
        /// </summary>
        /// <param name="code">供应商编码</param>
        /// <param name="id">供应商主键</param>
        /// <returns>返回结果</returns>
        Task<int> UpdateRepeatability(string code, int id);
        /// <summary>
        /// 编辑工序设置信息
        /// </summary>
        /// <param name="procedureSettingDto">编辑的供应商信息</param>
        /// <returns>返回结果</returns>
        Task<int> Update(ProcedureSettingDto procedureSettingDto);
    }
}
